using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ERP.ERPSystem.ProductionSystem.Dto
{
    /// <summary>
    /// 更新订单和物料需求的请求数据模型
    /// </summary>
    public class UpdateOrderWithMaterialsRequest
    {
        /// <summary>
        /// 订单信息
        /// </summary>
        [Required(ErrorMessage = "订单信息不能为空")]
        public CustomerOrderDto OrderInfo { get; set; }

        /// <summary>
        /// 物料需求列表
        /// </summary>
        public List<MaterialRequirementDto>? MaterialRequirements { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public UpdateOrderWithMaterialsRequest()
        {
            MaterialRequirements = new List<MaterialRequirementDto>();
        }
    }
} 